<template>
    <li>{{txt}}</li>
</template>

<script>
export default {
    name: "List",
    data() {
        return {
            txt: this.dataTxt,
        }
    },
    props: ["dataTxt"],

    mounted() {
        console.log(this.dataTxt)
    },    
}
</script>

<style scoped>    
    li {
        padding: 5px 20px;
        margin-top: 10px;
        background-color: wheat;
    }
</style>